package cn.gok;

import java.io.*;

public class 转换流 {
    public static void main(String[] args) throws IOException {
//        //转换输入流
//        InputStreamReader isr=new InputStreamReader(new FileInputStream(""),"utf-8");
//        //System.out.println(isr.read());
//        char bs[]= new char[10];
//        int len=0;
//        while(((len= isr.read(bs))!=-1){
//            System.out.println(new String(bs,0,len));
//        }
//        isr.close();
//        //转换输出流
//        OutputStreamWriter osw=new OutputStreamWriter(new FileOutputStream(""),"utf-8");
//        osw.write(97);
//        osw.write("你好");
//        osw.close();
    }
}
